﻿using Common.Contract.Authentication.Record;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace SMECustomerWebsite.Models.ViewModels.DaoManager
{
    public class ChangeDaoViewModel : GenerateViewMode, IViewModel
    {
        public int Id { get; set; }
        public List<string> Cif { get; set; }
        public string OldDao { get; set; }
        public string NewDao { get; set; }
        public string ListChangeDaoRequest { get; set; }
        [Required(ErrorMessage = "Reason is required.")]
        public int Reason { get; set; }
        public int Status { get; set; }
        public string CreateDateRange { get; set; }
        public bool IsDeviation { get; set; }

        public string ReasonDescription { get; set; }
        [FileExtensions(Extensions = "xlsx",
             ErrorMessage = "Specify a xlsx file. (Comma-separated values)")]
        public HttpPostedFileBase File { get; set; }
        public string RejectReason { get; set; }
        public UserRecord CurrentUser { get; set; }
    }
}